package top.heliming.youyou.search.pojo;

import java.util.List;
import java.util.Map;
import lombok.Data;
import top.heliming.youyou.common.pojo.PageResult;
import top.heliming.youyou.item.pojo.Brand;
import top.heliming.youyou.item.pojo.Category;

/**
 * description: //TODO
 *
 * @author: heliming
 * @date:2019/06/03 下午 10:23
 */
@Data
public class SearchResult extends PageResult<Goods> {

  private List<Category> categories;// 分类过滤条件
  private List<Brand> brands;// 品牌过滤条件
  //规格参数过滤条件
  private List<Map<String, Object>> specs;

  public SearchResult(Long total,
      Integer totalPage,
      List<Goods> items,
      List<Category> categories,
      List<Brand> brands,
      List<Map<String, Object>> specs) {
    super(total, (long)totalPage, items);
    this.categories = categories;
    this.brands = brands;
    this.specs = specs;
  }
}
